const db = require('../db');
const mongoose = db.mongoose;
const Schema = db.Schema;
const personSchema = new Schema({
  userName: {
    type: String,
    default: ''
  },
  password: {
    type: String,
    default: ''
  },
  sex: {
    type: String,
    default: ''
  },
  QQ: {
    type: String,
    default: '',
  },
  email: {
    type: String,
    default: '',
  },
  phone: {
    type: String,
    default: '',
  },
  birthday: {
    type: Date,
    default: '',
  },
  city: {
    type: String,
    default: '',
  }
});

const personType = mongoose.model('person_type',personSchema);
module.exports = personType;